package com.lagou.demo03.service;

import com.lagou.demo03.dao.StudentUpdateDao;
import com.lagou.demo03.factory.StudentUpdateDaoFactory;
import com.lagou.demo03.model.Student;

public class StudentUpdateService {
    private StudentUpdateDao studentUpdateDao;
    public StudentUpdateService(){
        this.studentUpdateDao = StudentUpdateDaoFactory.getStudentUpdateDao();
    }

    /**
     * 自定义成员方法实现根据参数指定的Student对象来调用DAO层实现信息插入功能
     */
    public Student studentUpdateService(Student student, String updateId){
        return studentUpdateDao.studentUpdate(student,updateId);
    }
}
